﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Bosphorus.Migrator.Core.MigrationCommand;

namespace Bosphorus.Migrator.Dialect.Core
{
    public abstract class AbstractDialect<TModel> : IDialect
    {
        public abstract string Create(TModel model);

        public abstract string Alter(TModel model);

        public abstract string Drop(TModel model);

        public string Create(ICommand model)
        {
            return Create((TModel) model);
        }

        public string Alter(ICommand model)
        {
            return Alter((TModel)model);
        }

        public string Drop(ICommand model)
        {
            return Drop((TModel)model);
        }
    }
}
